from django.conf.urls.defaults import *
from django.core.urlresolvers import reverse


LOGIN_DATA = dict(template_name="users/login.html", )
LOGOUT_DATA = dict(next_page = "/")
RESET_DATA = dict(template_name="users/password_reset.html",
                  email_template_name="users/password_reset_email.html",
                  post_reset_redirect="/")

urlpatterns = patterns('users.views',
    (r'^create/$', 'create_user'),    
    )

urlpatterns += patterns('',
    (r'^login/$', 'django.contrib.auth.views.login', LOGIN_DATA),
    (r'^logout/$', 'django.contrib.auth.views.logout', LOGOUT_DATA),
    (r'^password_reset/$', 'django.contrib.auth.views.password_reset', RESET_DATA),
    )
